package com.example.yk2021xm04.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.yk2021xm04.pojo.Project;
import com.example.yk2021xm04.pojo.ProjectUser;
import com.example.yk2021xm04.mapper.ProjectUserMapper;
import com.example.yk2021xm04.service.IProjectUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目-成员表 服务实现类
 * </p>
 *
 * @author ZengQi
 * @since 2021-11-26
 */
@Service
public class ProjectUserServiceImpl extends ServiceImpl<ProjectUserMapper, ProjectUser> implements IProjectUserService {

    /**
     * 通过项目创建者id查询项目创建者->项目经理
     * @author ZengQi
     * @date 2021/11/26 0026 19:44
     * @param createId
     * @return String
     */
    @Override
    public String findProjectLeaderByCreateId(Integer createId) {
        return this.baseMapper.findProjectLeaderByCreateId(createId);
    }

    @Override
    public List<Map<String, Object>> detail(Integer id) {
        return this.baseMapper.detail(id);
    }


}
